<wicket:panel xmlns:wicket="http://wicket.apache.org">
  <div wicket:id="alertDiv" class="modal fade" role="dialog" aria-hidden="true">
    <div class="modal-dialog">
      <div class="modal-content">

        <!-- Modal Header -->
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
            &times;
          </button>
          <h4 class="modal-title" wicket:id="title">
            [modal title]
          </h4>
        </div>

        <!-- Modal Body -->
        <div class="modal-body">
          <p wicket:id="message">
            [modal message]
          </p>
          <p>
            <a wicket:id="popupLink" ><wicket:container wicket:id="popupLinkLabel" /></a>
          </p>
        </div>

        <!-- Modal Footer -->
        <div wicket:id="modalFooter" class="modal-footer">
          <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        </div>

      </div>
    </div>
  </div>

  <!-- Link which shows the modal -->
  <a wicket:id="alertLink" data-toggle="modal" href="#loginModal" >
    <wicket:container wicket:id="alertLinkLabel" />
  </a>
</wicket:panel>